  <template>
  <div class="item-cell-wrapper" :class="{'border-bottom-1px': showBorder}">
    <div class="left-content-wrapper">
      <slot name="icon"></slot>
      <div class="title-wrapper">
        <h4 class="title">{{title}}</h4>
        <p v-if="label">{{label}}</p>
      </div>
    </div>
    <div class="right-content-wrapper">
      <div v-if="value" class="value-content">{{value}}</div>
      <i v-if="isClick" class="iconfont iconarrow_right"></i>
    </div>
  </div>
</template>
  
  <script>
export default {
  props: {
    title: [String, Number],
    label: [String, Number],
    value: [String, Number],
    showBorder: {
      type: Boolean,
      default: true
    },
    isClick: {
      type: Boolean,
      default: true
    }
  }
};
</script>
  
<style lang="stylus" scoped>
.item-cell-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: #fff;
  padding: 15px 12px;

  .left-content-wrapper {
    max-width: 300px;
    display: flex;
    align-items: center;

    .title-wrapper {
      >h4 {
        color: #333;
        font-size: 14px;
      }

      >p {
        color: #999;
        font-size: 12px;
        margin-top: 8px;
      }
    }
  }

  .right-content-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    .value-content {
      color: #666;
      font-size: 14px;
      margin-right: 4px;
    }

    .iconfont {
      color: #aaa;
    }
  }

  &.border-bottom-1px::after {
    left: 12px;
  }
}
</style>

  